home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_05
/
1005075a
< prev
next >
Wrap
Text File
|
1991-09-24
|
370b
|
19 lines
/*
* Stack abstraction example header file
*/
#define STACK_SIZE 10
typedef struct {
char *stk_magic; /* stack magic number */
int stk_top; /* top of stack index */
void *stk_stack[STACK_SIZE]; /* actual stack storage */
} STK;
STK *StkConstruct();
void StkDestroy(STK*);
void StkPush(STK*, void*);
void *StkPop(STK*);
int StkIsEmpty(STK*);